package cn.xiaye.httpserver.action;

import java.io.PrintWriter;

import cn.xiaye.httpserver.Request;
import cn.xiaye.httpserver.Response;

public class TestAction extends DefaultListAction {
	@Override
	public String execute(Request request, Response response) {

		String username = request.getParameter("username");
		String password = request.getParameter("password");

		PrintWriter out = response.getOut();

		out.println("<html>");

		out.println("<head></head>");

		out.println("<body>");

		for (int i = 0; i != username.length(); i++) {
			int size = i + 5;
			out.println("<font size=" + size + ">");

			out.println(username.charAt(i));

			out.println("</font>");

			out.println("<br/>");
		}

		out.println("我知道你的密码:" + password);
		out.println("</body>");

		out.println("</html>");

		return null;
	}

}
